
import http from '@/utils/request.js';

// 查询电梯是否需要发送群消息 // id 电梯id
export const getRobotStatus = (data) => {
	// return http.get('/repair/robot/status/' + data.id, data, 0, false);
	return http.request({
		url: '/repair/robot/status/' + data.id,
		method: 'get',
		data,
		toast: 0,
		timeout: false
	});
};

// 发送群消息
export const pushRobotMsg = (data) => {
	// return http.post('/repair/robot/push/' + data.id, data, 1, false);
	return http.request({
		url: '/repair/robot/push/' + data.id,
		method: 'post',
		data,
		textJson: true,
		autoid: false,
	});
};

// 发送模板消息 
export const pushWxMsg = (data) => {
	// return http.get('/repair/maintain/plan/content/bot/send/msg', data, 0, false);
	return http.request({
		url: '/repair/maintain/plan/content/bot/send/msg',
		method: 'get',
		data,
		toast: 0,
		timeout: false
	});
};
